#import "BCAppDelegate.h"

#import "BCAboutBoxController.h"
#import "BCPreferencesController.h"

@implementation BCAppDelegate

- (void) showAboutBox: (id)sender
{
    [[BCAboutBoxController sharedAboutBoxController] showWindow: self];
}

- (void) showHelp: (id)sender
{
    NSAssert(FALSE, @"Not implemented yet.");
}

- (NSError*) application: (NSApplication*)application willPresentError: (NSError*)error
{
    NSAssert(FALSE, @"Not implemented yet.");
    
    return nil;
}

- (void) showLicense: (id)sender
{
    [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"http://www.gnu.org/licenses/gpl.txt"]];
}

- (void) showWebsite: (id)sender
{
    [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"http://bluecouch.com/tubby/"]];
}

- (void) sendFeedback: (id)sender
{
    [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"mailto:feedback@bluecouch.com"]];
}

- (void) showPreferences: (id)sender
{  
    [[BCPreferencesController sharedPreferencesController] showWindow: self];
}

@end
